<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>vue测试</title>
</head>

<body>
<div id="app">
    <p>{{count}}</p>
    <p k-text="count"></p>
    <p k-html="desc"></p>
</div>
</body>
<!--<script src="../../node_modules/vue/dist/vue.js"></script>-->
<script src="./kvue.js"></script>
<script>
    let app = new KVue({
        el: "#app",
        data(){
            return {
                count: 1,
                desc: "<div style='color: red'>这个是一段html</div>"
            }
        }
    })

    setInterval(() => {
        app.count++;
    }, 1000)
</script>
</html>
